package org.lucky_common.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.Email;
import java.io.Serializable;
@Data
public class LuckyShareExportVo implements Serializable {

    @Excel(name = "编号")
    private Long id;

    @Excel(name = "主邀请码")
    private String inviteCode;

    @Excel(name = "邀请次数")
    private String count;

    @Excel(name = "邀请有效次数")
    private String verifyCount;

    @Excel(name = "关联userId")
    private String userId;

    @Excel(name = "邀请者Id")
    private String parentId;

    @Excel(name = "变动邀请码")
    private String inviteCode2;

    @Excel(name = "是否提交资料")
    private String submitParam;

    @Excel(name = "是否进入第二阶段")
    private String secondStage;

    public static final ThreadLocal<Integer> threadLocal_collectionSize = new ThreadLocal<>();
    public static final ThreadLocal<Integer> threadLocal_insertIndex = new ThreadLocal<>();

    public Long getUsername() {
        Integer insertIndex = threadLocal_insertIndex.get();
        insertIndex++;
        threadLocal_insertIndex.set( insertIndex );
        return id;
    }
}
